package com.wxsong.authplatform.authweb.model.test;

import java.sql.Timestamp;
import java.util.Date;

public class User {

    private int id;
    private String name;
    private int age;
    private Date birth;
    private Date createTime;

    public User(String name, int age, Timestamp birth) {
        this.name = name;
        this.age = age;
        this.birth = birth;

    }
    public User(int id, String name, int age, Timestamp birth, Timestamp createTime) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.birth = birth;
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public User setId(int id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public User setName(String name) {
        this.name = name;
        return this;
    }

    public int getAge() {
        return age;
    }

    public User setAge(int age) {
        this.age = age;
        return this;
    }

    public Date getBirth() {
        return birth;
    }

    public User setBirth(Date birth) {
        this.birth = birth;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public User setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    @Override
    public String toString() {
        return "Users{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", birth=" + birth +
                ", createTime=" + createTime +
                '}';
    }
}
